package com.mybatis.example.dao;

import com.mybatis.example.pojo.Student;
import org.apache.ibatis.annotations.Param;
import org.apache.ibatis.annotations.Select;

import java.util.List;

public interface StudentMapper {
    @Select("select * from student where id = #{id} ;")
     Student getStudentById(@Param("id") int id);

    //查询所有的学生信息,以及对应的老师的信息
    public List<Student> getStudent();
    public List<Student> getStudent2();
}
